<%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="display" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>droik.com</title>
<link href="../css/sample1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url(../images/main_bg2.gif);
}
.style2 {color: #88DB23}
.style3 {color: #FFFFFF}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<jsp:include page="top.jsp"/>
<br>
<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<img src="../images/deals_tab.gif" width="720" height="76" border="0" usemap="#Map">
		</td>
	</tr>
	<tr>
		<td background="../images/border_bg2.gif">
			<table width="680" border="0" align="center" cellpadding="0" cellspacing="0" >
				<tr> 
					<td colspan="5"> 
						<%
						java.util.Hashtable allArea = (java.util.Hashtable)session.getAttribute("DAPALLCATEGORY");
						java.util.Hashtable allAreaId = (java.util.Hashtable)session.getAttribute("DAPCATIDS");
						String catType =request.getParameter("CatType");
						int catId;
						String mainCatId;
						String subCatName;
						String mainCatName="";
						if (catType!=null)
						{
							catId =  Integer.parseInt(catType);
						} 
						else 
						{
							catId=0;
						}						
						if (catId==0)
						{
							subCatName="";
							mainCatId = request.getParameter("PostingType");
							if (mainCatId!=null)
							{
								if (mainCatId.equals("99"))
								{
									mainCatName="All Categories";
								}
								else
								{
									mainCatName = (String)allArea.get(mainCatId);
								}
							}
						}
						else
						{
							mainCatId = (String)allAreaId.get(catId+"");
							subCatName = (String)allArea.get(catId+""); 
							mainCatName = (String)allArea.get(mainCatId);
						}						
						%>
						<form name="form1" method="post" action="../portal/SearchAdv.do?action=SearchAd&PostingType=<%=mainCatId%>&CatType=<%=catId%>" onSubmit="return isInteger()">
							<table width="100%" cellpadding="3" cellspacing="0" border="0" bgcolor="#99CC33">
								<!--DWLayoutTable-->
								<tr bgcolor="#FFFFFF"> 
									<td height="47" colspan="6" nowrap class="title"><br>
										<%=mainCatName%><font size="1"><b> <img src="../images/arrow.gif" width="13" height="13"></b></font><%=subCatName%> 
									</td>
								</tr>
								<tr bgcolor="#FFFFFF"> 
									<td colspan="6" valign="top"  height="44">
										<br><display:table width="100%" cellpadding="4" cellspacing="1" border="1" class="simple" name="sessionScope.DealSearchResults" pagesize="50"> 
										<display:column property="datePosted" title="Posted On" sortable="true" headerClass="title_link" group="1" /> 
										<display:column property="title" title="Featured Deals" href="../portal/deals.do?action=DisplayDeals" paramId="dealsId" paramProperty="dealsId" sortable="true" headerClass="title_link"/> 
										<display:column property="businessName" title="Business Name" sortable="true" headerClass="title_link"/> 
										<display:column property="place" title="City" sortable="true" headerClass="title_link" /> 
										<display:column property="expiry" title="Expiry" sortable="true" headerClass="title_link" /> 
										</display:table>
									</td>
								</tr>
								<tr> 
									<td height="0" width="103"></td>
									<td width="144"></td>
									<td></td>
									<td width="54"></td>
									<td></td>
									<td width="159"></td>
								</tr>
							</table>
						</form>
					</td>
				</tr>
			</table>
		</td>
		</tr>
		<tr>
			<td><img src="../images/border_bot2.gif" width="719" height="20"></td>
		</tr>
</table>
<blockquote>
	<p><br>
	<br>
	<jsp:include page="footer.html"/>
		<map name="Map">
			<area shape="rect" coords="41,12,113,82" href="../portal/index.do">			
			<area shape="rect" coords="124,6,214,73" href="../portal/activities.do">
			<area shape="rect" coords="220,9,319,74" href="../portal/attractions.do">
			<area shape="rect" coords="319,4,400,74" href="../portal/deals.do">
		</map>
	</p>
</blockquote>
</body>
</html>
